package com.tm.config;





public class AliOSSConfig {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

    public String getEndpoint() {
        return endpoint;
    }

    public AliOSSConfig(String endpoint, String accessKeyId, String accessKeySecret, String bucketName) {
        this.endpoint = endpoint;
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
        this.bucketName = bucketName;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public static void setInstance(AliOSSConfig instance) {
        AliOSSConfig.instance = instance;
    }

    private AliOSSConfig(){

        endpoint = "oss-cn-zhangjiakou.aliyuncs.com";
        accessKeyId= "LTAI5tGAfCbyfRga7ui1U9Xi";
        accessKeySecret= "QQQAljx8pZJ42hinBAdK4EGWyBGsbR";
        bucketName= "zkjtest";
    }

    private static AliOSSConfig instance = new AliOSSConfig();

    public static AliOSSConfig getInstance() {
        return instance;
    }
}
